package org.dromara.finance.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 收款登记对象 bill
 *
 * @author xxy
 * @date 2025-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("bill")
public class Bill extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 账单类型 1-收款，2-付款
     */
    private Long billType;

    /**
     * 关联合同id
     */
    private Long contractId;

    /**
     * 收付款金额
     */
    private BigDecimal billAmount;

    /**
     * 入账日期
     */
    private Date recordDate;

    /**
     * 相关凭证号
     */
    private String voucherNum;

    /**
     * 备注
     */
    private String remark;


}
